/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年11月17日         Root.Lu
 */

package com.coocaa.x.service.litepm.data;

import java.util.List;

import android.os.Parcelable;

import com.coocaa.x.framework.data.JObject;

public class AppInfo extends JObject implements Cloneable {
    public static final int FLAG_MASK_CHILD_LOCK = 1 << 0;
    public String appName = null;
    public String pkgName = null;
    public String mainActivity = null;
    public List<MActivityInfo> activityList = null;
    public String versionName = null;
    public int versionCode = 0;
    public String apkPath = null;
    public int minSdkVersion = 0;
    public long firstInstallTime = 0;
    public long size = 0;
    public boolean isSystemApp = false;
    public boolean isSystemUserId = false;

    public String getKey() {
        return pkgName + mainActivity;
    }

    public AppInfo clone() throws CloneNotSupportedException {
        return (AppInfo) super.clone();
    }

    public static final Parcelable.Creator<AppInfo> CREATOR = createCREATOR(AppInfo.class, null);
}
